package com.qinhao.loveCrowdFunding.mapper;

import com.qinhao.loveCrowdFunding.pojo.*;
import com.qinhao.loveCrowdFunding.req.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface UserLoginMapper {
    UserLoginBO queryUserByLogin(UserLoginRequest userLoginRequest);
    // 通过手机号更新用户的密码
    void updatePasswordByPhone(UpdatePasswordRequest updatePasswordRequest);
    // 通过用户id更新用户名
    void updateNameById(UpdateNameByIdRequest updateNameByIdRequest);
    // 通过用户名查询用户
    UpdateNameByIdBO queryUserByUserName(UpdateNameByIdRequest updateNameByIdRequest);
    // 通过用户id查询用户积分余额
    GetIntegralBalanceBO getIntegralBalanceByUserId(GetIntegralBalanceRequest getIntegralBalanceRequest);
    // 添加积分记录
    void addIntegralRecord(IntegralChangeEntity integralChangeEntity);
    // 更改个人积分
    void changeIntegral(IntegralChangeEntity integralChangeEntity);
    // 获取个人积分记录
    List<GetIntegralRecordBO> getIntegralRecord(GetIntegralRecordRequest getIntegralRecordRequest);
    // 获取未结束的积众筹项目数量
    CanPublishQueryBO getUnEndFunding(CanPublishFundingQueryRequest canPublishFundingQueryRequest);
}
